<!-- 综合查询 -->

<div class="container" ms-important="query">

    <style>

        #btnareabranch{
            display: none;
        }

    </style>
	<div class="row handler">

        <span><i style="font-size: 15px" class="iconfont">&#xe601;</i>功能模块</span>
        <hr>

        <div class="btnBlock" type="f" :click="@btnBlockTotal">
            <div>
                <i class="iconfont">&#xe6e4;</i>
                <span style="vertical-align: super;">总队任务查询</span>
            </div>
            <div class="triangle" type="display" id="angletotal"></div>
        </div>

        <div class="btnBlock" type="s" :click="@btnBlockBranch">
            <div>
                <i class="iconfont">&#xe6e4;</i>
                <span style="vertical-align: super;">支队任务查询</span>
            </div>
            <div class="triangle" type="display" id="anglebranch" style="display: none"></div>
        </div>


        <div class="btnarea" id="btnareatotal">
            <!-- 查询总任务操作 -->
            <form role="form" class="form-horizontal" data-parsley-validate="" novalidate="">

                <div class="form-group">

                    <label class="col-md-1 control-label">开始时间</label>
                    <div class="col-sm-2">
                        <div class="input-group date" data-provide="datepicker">
                            <input type="text" class="form-control" :duplex="@total.startTime">
                            <div class="input-group-addon">
                                <span class="glyphicon glyphicon-th"></span>
                            </div>
                        </div>
                    </div>


                    <label class="col-md-1 control-label">结束时间</label>
                    <div class="col-sm-2">
                        <div class="input-group date" data-provide="datepicker">
                            <input type="text" class="form-control" :duplex="@total.endTime">
                            <div class="input-group-addon">
                                <span class="glyphicon glyphicon-th"></span>
                            </div>
                        </div>
                    </div>

                    <span style="float: right;color: red">*仅能查询任务总数</span>
                </div>

                <div class="form-group">
                    <button style="float: right" type="button" class="btn btn-sm btn-primary" :click="@queryTotal">查询</button>
                </div>

                <div class="form-group">
                    <label class="col-md-12 control-label" :if="@total.display">任务总数为{{@total.count}}条</label>
                </div>
            </form>
        </div>

        <div class="btnarea" id="btnareabranch">

            <!-- 查询各队任务操作 -->
            <form role="form" class="form-horizontal" data-parsley-validate="" novalidate="">

                <div class="form-group">

                    <label class="col-md-1 control-label">开始时间</label>
                    <div class="col-sm-2">
                        <div class="input-group date" data-provide="datepicker">
                            <input type="text" class="form-control" :duplex="@team.startTime">
                            <div class="input-group-addon">
                                <span class="glyphicon glyphicon-th"></span>
                            </div>
                        </div>
                    </div>

                    <label class="col-md-1 control-label">结束时间</label>
                    <div class="col-sm-2">
                        <div class="input-group date" data-provide="datepicker">
                            <input type="text" class="form-control" :duplex="@team.endTime">
                            <div class="input-group-addon">
                                <span class="glyphicon glyphicon-th"></span>
                            </div>
                        </div>
                    </div>

                    <button type="button" class="btn btn-sm btn-primary btn-right" :click="@queryTeam">查询</button>
                </div>
            </form>

        </div>

        <span><i style="font-size: 15px" class="iconfont">&#xe6d6;</i>列表展示</span>
        <hr>
    </div>
    <div class="row data">
    <div>
        <table id="teamTaskTable"
           data-detail-formatter="detailFormatter"
           data-minimum-count-columns="2"
           data-pagination="true"
           data-id-field="id"
           data-page-list="[10, 25, 50, 100, ALL]"
           data-show-footer="false"
           data-side-pagination="client"
           data-click-to-select="true" data-page-number="1" data-page-size="5">
            <thead>
                <tr>
                    <th data-field="state" data-radio="true"></th>
                    <th data-field="groupName" data-sortable="true">支队名称</th>
                    <th data-field="taskCount" data-sortable="true">任务总数</th>
                    <th data-field="taskFinishCount" data-sortable="true">任务完成数</th>
                </tr>
            </thead>
        </table>
    </div>
</div>
</div>